//
//  GalCollectionViewCell.m
//  HomeFurnishing
//
//  Created by dllo on 16/3/28.
//  Copyright © 2016年 YMing. All rights reserved.
//

#import "GalCollectionViewCell.h"

@implementation GalCollectionViewCell

-(void)dealloc
{
    [_imgView release];
    [super dealloc];
}
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
        [self.contentView addSubview:_imgView];
    }
    return self;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    //图片填充满cell
    _imgView.frame = layoutAttributes.bounds;
}
@end
